home *** CD-ROM | disk | FTP | other *** search
/ Aminet 2 / Aminet AMIGA CDROM (1994)(Walnut Creek)[Feb 1994][W.O. 44790-1].iso / Aminet / util / misc / Fudgit233.lha / Source / src / Makefile.irix4 < prev    next >
Encoding:
Makefile  |  1993-12-14  |  3.3 KB  |  120 lines

  1. ############################
  2. # IRIX Makefile for FUDGIT
  3. ############################
  4. #
  5. # The following definitions are overwritten frm DL=NO in the Master Makefile
  6. DLLIB = -Ldl/ -ldl -lmld 
  7. DLAR = dl/libdl.a
  8.  
  9. # -lmalloc is better than regular
  10. LDFLAGS = -lm -Lreadline/ -lreadline -ltermcap $(DLLIB) -lmalloc
  11.  
  12. # nlist(3) returns the type value + 1 if found on earlier operating
  13. # systems. On IRIX 4.0.5, it returns the same value if found, zero
  14. # otherwise. Defining SAME_STPROC takes care of that.
  15. # If your operating system is below 4.0.5 do not define the following:
  16. #PROC = -DSAME_STPROC
  17.  
  18. # Flags for the intrisic IRIX compiler
  19. SPECIALCFLAGS = -xansi -prototypes -D__STDC__\
  20.      -fullwarn -woff 202,269,270,302,303
  21.  
  22. # If you want to use gcc
  23. # SPECIALCFLAGS = -Wall
  24.  
  25. # YOU SHOULD NOT NEED TO EDIT BELOW THIS POINT
  26. # shell definition
  27. SHELL = /bin/sh
  28. # compiling flags for SGI machines IRIX 3.5 to 4.0
  29. CFLAGS = $(OPT) -D_BSD_COMPAT -D_BSD_SIGNALS $(SPECIALCFLAGS) -DDL_$(DL)
  30. # Final compiling flags
  31. FCFLAGS =  -D_BSD_COMPAT -D_BSD_SIGNALS $(OPT) $(SPECIALCFLAGS)
  32. # READLINE CFLAGS for IRIX
  33. READLINE = OTH_CFLAGS="-D_BSD_SIGNALS -D_BSD_COMPAT \
  34.     $(SPECIALCFLAGS) $(VI_MODE)" USG="-DUSG"
  35. # Default compiler
  36. CC = cc
  37. YFLAGS = -d # -v
  38. DATE = `cat ../Date`
  39. VERSION = `cat ../Version`
  40. COMP = -c
  41.  
  42. OBJECTS = mathparse.o fudgit.o alloc.o setshow.o vgetargp.o plot.o\
  43.     fits.o fit.o svdfit.o medfit.o help.o mrqmin.o \
  44.     command.o code.o math.o lexi.o init.o fft.o macro.o minit.o \
  45.     spline.o readline2.o chd.o if.o strings.o
  46.  
  47. DLFLAGS = CFLAGS="$(SPECIALCFLAGS)" # CFLAGS="$(SPECIALCFLAGS) -DDEBUG -O"
  48.  
  49. all:
  50.     -if [ "$(DL)" = "YES" ] ; then (cd dl; $(MAKE) CC="$(CC)" $(DLFLAGS)) ;fi
  51.     (cd readline; $(MAKE) CC="$(CC)" $(READLINE))
  52.     $(MAKE) -f Makefile.irix4 CC="$(CC)" \
  53.     DLLIB="$(DLLIB)" DLAR="$(DLAR)" ../fudgit
  54.  
  55. ../fudgit: $(OBJECTS) fudgit.h setshow.h readline/libreadline.a $(DLAR)
  56.     $(CC) $(FCFLAGS) -o ../fudgit $(OBJECTS) $(LDFLAGS)
  57.  
  58. code.o: code.h math.tab.h symbol.h code.c
  59.     $(CC) $(COMP) $(CFLAGS) $(POP) code.c
  60.  
  61. command.o: symbol.h code.h macro.h fudgit.h math.tab.h \
  62.     setshow.h help.h install.c install.dummy.c
  63.     $(CC) $(COMP) $(CFLAGS) $(PROC) command.c
  64.  
  65. fft.o: math.tab.h code.h symbol.h fudgit.h setshow.h dalloca.h
  66.  
  67. fits.o: symbol.h code.h fudgit.h math.tab.h setshow.h
  68.  
  69. fudgit.o: fudgit.h macro.h ../Date fudgit.c ../Version
  70.     $(CC) $(COMP) $(CFLAGS) -DDATE="\"$(DATE)\"" \
  71.     -DVERSION="\"$(VERSION)\"" fudgit.c
  72.  
  73. help.o: help.h fudgit.h help.c help.c
  74.     $(CC) $(COMP) $(CFLAGS) -DHELPFILE="\"$(LIBDIR)/fudgit.help\"" help.c
  75.  
  76. if.o: fudgit.h
  77.  
  78. init.o: symbol.h code.h math.tab.h fudgit.h
  79.  
  80. lexi.o: symbol.h code.h fudgit.h math.tab.h
  81.  
  82. macro.o: macro.h fudgit.h setshow.h
  83.  
  84. math.o: fudgit.h
  85.  
  86. mathparse.o: symbol.h code.h parse.y
  87.     yacc $(YFLAGS) parse.y
  88.     cat y.tab.c | sed s/yy/Ft_mathyy/g > mathparse.c
  89.     rm y.tab.c
  90.     $(CC) $(COMP) $(CFLAGS) mathparse.c
  91.  
  92. medfit.o: dalloca.h
  93.  
  94. minit.o: macro.h setshow.h
  95.  
  96. mrqmin.o: dalloca.h
  97.  
  98. chd.o: fudgit.h
  99.  
  100. plot.o: fudgit.h setshow.h macro.h
  101.  
  102. setshow.o: symbol.h code.h fudgit.h math.tab.h setshow.h macro.h functions.h
  103.  
  104. spline.o: dalloca.h fudgit.h math.tab.h symbol.h code.h command.h
  105.  
  106. svdfit.o: dalloca.h
  107.  
  108. vgetarg.o: fudgit.h macro.h symbol.h code.h math.tab.h
  109.  
  110. math.tab.h: y.tab.h
  111.     cat y.tab.h | sed s/yy/Ft_mathyy/g > math.tab.h
  112.  
  113. y.tab.h: mathparse.o
  114.  
  115. readline/libreadline.a:
  116.     (cd readline; $(MAKE) $(READLINE) )
  117.  
  118. dl/libdl.a:
  119.     -if [ "$(DL)" = "YES" ] ; then (cd dl; $(MAKE) $(DLFLAGS) ); fi
  120.